/** @ingroup tool Cargo Tool
 * @{
 */
/*
 * Application\Inc\xstring.h
 *
 * String libarary function
 *
 * Author: Chao-Chi Kuo <chaochi_kuo@systech.com.tw>
 * Copyright (c) 2010 SYSTEMS & TECHNOLOGY CORP. <http://www.systech.com.tw/>
 * All rights reserved.
 *
 * Modifications:
 * 2009/11/18 Chao-Chi Kuo	first implemetation
 *
 * $Id: xstring.h 196 2010-08-05 01:54:48Z chaochi_kuo $
 */
#ifndef __XSTRING_H_
#define __XSTRING_H_

#ifdef  __cplusplus
extern "C" {
#endif		/* __cplusplus */

#include <string.h>

void *xmemcpy(void *to, const void *from, size_t count);
void *xmemset(void *buffer, int ch, size_t count);

int xstrcmp(const char *str1, const char *str2);
char *xstrcat(char *str1, const char *str2);
char *xstrchr(const char *str, int ch);
size_t xstrlen(char *str);


#ifdef __cplusplus
}
#endif	/* __cplusplus */
#endif	/* __XSTRING_H_ */
/** @} */

